import { settingConfig } from "@/config";

export const homeConfig = {
    path: "home",
    name: settingConfig.homeName,
    meta: {
        title: "首页",
        icon: "home",
    },
};

export const routerConfig = {
    aloneRouter: {
        path: "/",
        name: settingConfig.mainName,
        component: () => import("@/layout/mainLayout.vue"),
        redirect: { name: settingConfig.homeName },
        meta: {
            title: "首页工作台",
        },
        children: [
            {
                ...homeConfig,
                component: () => import("@/container/home/home.vue"),
            },
        ],
    },
    multiRouter: {
        path: "/",
        name: settingConfig.mainName,
        component: () => import("@/layout/multiHomeLayout/multiHomeLayout.vue"),
        redirect: { name: settingConfig.homeName },
        meta: {
            title: "首页工作台",
        },
        children: [
            {
                ...homeConfig,
                component: () =>
                    import("@/container/multi-module-home/multi-module-home.vue"),
            },
        ],
    },
};
